package com.example.openim.enums;

public enum ErrorCode {
    SUCCESS("0","操作成功!"),
    ERROR("1","操作失败!"),

    UNAUTHORIZED("401","认证异常!"),
    FORBIDDEN("403","授权异常"),
    TENANT_NOT_FOUND("2","租户不存在!")
    ;

   private String code;
   private String msg;

    ErrorCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
